<template>
  <div>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
  <el-form-item label="生产部门">
    <el-select v-model="formInline.region" placeholder="请选择">
      <el-option label="技术部" value="技术部"></el-option>
      <el-option label="市场部" value="市场部"></el-option>
      <el-option label="特务一部" value="特务一部"></el-option>
      <el-option label="特务二部" value="特务二部"></el-option>
      <el-option label="宏石" value="宏石"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="合同名称">
    <el-input v-model="formInline.user" placeholder="合同名称"></el-input>
  </el-form-item>
  <el-form-item label="合同年份">
    <el-select v-model="formInline.region" placeholder="请选择">
      <el-option label="2022" value="2022"></el-option>
      <el-option label="2021" value="2021"></el-option>
      <el-option label="2020" value="2020"></el-option>
      <el-option label="2019" value="2019"></el-option>
      <el-option label="2018" value="2018"></el-option>
      <el-option label="2017" value="2017"></el-option>
      <el-option label="2016" value="2016"></el-option>
      <el-option label="2015" value="2015"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="收费时间">
    <el-date-picker
      v-model="value1"
      type="date"
      placeholder="选择日期">
    </el-date-picker>
  </el-form-item>
  <el-form-item label="截止时间">
    <el-date-picker
      v-model="value1"
      type="date"
      placeholder="选择日期">
    </el-date-picker>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">查询</el-button>
  </el-form-item>
</el-form>



<el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="xh"
        label="序号">
      </el-table-column>
      <el-table-column
        prop="htbh"
        label="合同编号">
      </el-table-column>
      <el-table-column
        prop="htmc"
        label="合同名称">
      </el-table-column>
      <el-table-column
        prop="zgs"
        label="子公司">
      </el-table-column>
      <el-table-column
        prop="hte"
        label="合同额（万元）">
      </el-table-column>
      <el-table-column
        prop="sjhte"
        label="实际合同额（万元）">
      </el-table-column>
      <el-table-column
        prop="ssze"
        label="实收总额（万元）">
      </el-table-column>
      <el-table-column
        prop="gcfzr"
        label="工程负责人">
      </el-table-column>
      <el-table-column
        prop="sfjd"
        label="收费进度">
        <el-progress :text-inside="true" :stroke-width="26" :percentage="50"></el-progress>
      </el-table-column>
      <el-table-column
      fixed="right"
      label="操作"
      width="100">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
        <el-button type="text" size="small">收费</el-button>
      </template>
    </el-table-column>
    </el-table>

      <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pageIndex"
      :page-sizes="[3, 5, 8]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="totalCount">
    </el-pagination>
  </div>
</template>




<script>
  export default {
    data() {
      return {
        pageIndex: 1,
        pageSize:3,
        totalCount:2,
        tableData: [{
            xh: '1',
            htbh: '0001',
            htmc: '测试',
            zgs:'子公司1',
            hte:'50',
            sjhte:'261',
            ssze:'0',
            gcfzr:'王超',
            sfjd:'50',
          },
          {
            xh: '2',
            htbh: '1-001',
            htmc: '万科紫金花城',
            zgs:'建筑一部',
            hte:'100',
            sjhte:'100',
            ssze:'0',
            gcfzr:'朱云',
            sfjd:'70',
          }],
        formInline: {
          user: '',
          region: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    }
  }
</script>